package org.cuatrovientos.erp.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class ProductType {

	private int id;

	@Size(min=2,max=50,message="{producttype.name.error}")
	private String name;

	/**
	 * @param id
	 * @param name
	 */
	public ProductType(int id, String name) {
		this.id = id;
		this.name = name;
	}

	/**
	 * 
	 */
	public ProductType() {
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	
	
}
